package org.springframework.context;

import java.util.EventListener;

/**
 * @Name ApplicationListener
 * @Description: 事件监听器接口
 * @Version v1.0.0
 * @Author: lichao
 * @Date: 2024-03-21 15:35:49
 **/
public interface ApplicationListener<E extends ApplicationEvent> extends EventListener {

    /**
     * 监听事件
     *
     * @param event 事件对象
     * @version v1.0.0
     * @author lichao
     * @date 2024-03-21 15:37:51
     */
    void onApplicationEvent(E event);

}
